package middlewareorid.engine;

public abstract class BlogsEngine {
	
	protected String urlBase = "";
	
	protected BlogsEngine(String url) {
		this.urlBase = url;
	}
	
	protected static String getBlogListURL(String url) {
		String result = "";
		return result;
	}
	
	public static String getURLforCategoryList() {
		String result ="";
		
		ConfigAccess cf = new ConfigAccess();
		result = cf.getConfigFromCatalog(cf.APP_BLOGS);
		String id = cf.getConfigFromCatalog(cf.APP_USER);
		String type = cf.getConfigFromCatalog(cf.APP_BLOGS_TYPE);
		if (type.equals("0")) {
			result = result + "/djokdja.php?djokdjaid=" + id + "&djokdjaAction=querycategory";
		} else if (type.equals("1")) {
			result = result + "/wordpress.php?djokdjaid=" + id + "&djokdjaAction=querycategory";
		}
		return result;
	}
}
